package com.chen.util;

public class BaseUtil {

	//测试字符串是否为空
	public static boolean isBlank(String arg){
		if (arg.equals(null)||"".equals(arg.trim())) {
			return true;
		}
		return false;
	}
	public static Double isDouble(String arg){
		if (arg.equals(null)||"".equals(arg.trim())) {
			return 0.00;
		}
		return Double.valueOf(arg);
	}
	public static Double beDouble(Double arg){
		if (arg == null || arg.equals(null)) {
			return 0.00;
		}
		return arg;
	}	
	
}
